package com.px.device.service.impl;

import com.px.system.domain.AirportOsd;
import com.px.system.mapper.AirportOsdMapper;
import com.px.device.service.IAirportOsdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 机场设备属性osdService业务层处理
 * 
 * @author WRJ
 * @date 2024-08
 */
@Service
public class AirportOsdServiceImpl implements IAirportOsdService
{
    @Autowired
    private AirportOsdMapper airportOsdMapper;

    /**
     * 查询机场设备属性osd
     * 
     * @param sn 机场设备属性osd主键
     * @return 机场设备属性osd
     */
    @Override
    public AirportOsd selectAirportOsdBySn(String sn)
    {
        return airportOsdMapper.selectAirportOsdBySn(sn);
    }

    /**
     * 查询机场设备属性osd列表
     * 
     * @param airportOsd 机场设备属性osd
     * @return 机场设备属性osd
     */
    @Override
    public List<AirportOsd> selectAirportOsdList(AirportOsd airportOsd)
    {
        return airportOsdMapper.selectAirportOsdList(airportOsd);
    }

    /**
     * 新增机场设备属性osd
     * 
     * @param airportOsd 机场设备属性osd
     * @return 结果
     */
    @Override
    public int insertAirportOsd(AirportOsd airportOsd)
    {
        return airportOsdMapper.insertAirportOsd(airportOsd);
    }

    /**
     * 修改机场设备属性osd
     * 
     * @param airportOsd 机场设备属性osd
     * @return 结果
     */
    @Override
    public int updateAirportOsd(AirportOsd airportOsd)
    {
        return airportOsdMapper.updateAirportOsd(airportOsd);
    }

    /**
     * 批量删除机场设备属性osd
     * 
     * @param sns 需要删除的机场设备属性osd主键
     * @return 结果
     */
    @Override
    public int deleteAirportOsdBySns(String[] sns)
    {
        return airportOsdMapper.deleteAirportOsdBySns(sns);
    }

    /**
     * 删除机场设备属性osd信息
     * 
     * @param sn 机场设备属性osd主键
     * @return 结果
     */
    @Override
    public int deleteAirportOsdBySn(String sn)
    {
        return airportOsdMapper.deleteAirportOsdBySn(sn);
    }
}
